package com.pianzhu.blockchainemr.mapper;

import com.pianzhu.blockchainemr.pojo.MedicalRecords;
import com.pianzhu.blockchainemr.pojo.result.MedicalRecordListResult;
import com.pianzhu.blockchainemr.pojo.Patient;
import com.pianzhu.blockchainemr.pojo.result.RegistryRecordListResult;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface PatientMapper {

    List<MedicalRecordListResult> getMedicalRecord(String username);

    List<RegistryRecordListResult> getRegistryRecord(String username);

    void register(MedicalRecords medicalRecords);

    Patient selectPatient(String username);

    List<MedicalRecords> getMedicalRecordList(String username);

    List<String> getDiseasesOnceSuffered(String username);
}
